package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.TbMailLogValidatorGroup.*;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.Domain;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * TbMailLog is a Codegen vo type
 */
@Label("TbMailLog")
@Domain(domainClassName="com.cloudlead.commonData.entity.ETbMailLog")
public class TbMailLog extends AbstractIdEntity<String> {

    private static final long serialVersionUID =13154745327448L;    
    @Label("fileName")
    @Size(max=50)
    private String fileName;

    @NotNull(groups={Update.class})
    @Label("id")
    @Size(max=24)
    private String id;

    @Label("mailContent")
    @Size(max=5000)
    private String mailContent;

    @Label("mailTime")
    @Size(max=50)
    private String mailTime;

    @Label("mailTo")
    @Size(max=50)
    private String mailTo;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMailContent() {
        return mailContent;
    }

    public void setMailContent(String mailContent) {
        this.mailContent = mailContent;
    }

    public String getMailTime() {
        return mailTime;
    }

    public void setMailTime(String mailTime) {
        this.mailTime = mailTime;
    }

    public String getMailTo() {
        return mailTo;
    }

    public void setMailTo(String mailTo) {
        this.mailTo = mailTo;
    }

    public String toString() {
         return String.format("TbMailLog { fileName : %s,id : %s,mailContent : %s,mailTime : %s,mailTo : %s }",fileName,id,mailContent,mailTime,mailTo);
    }

}

